<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
$_plate=$plate['product'];


//获取板块的设置
include_once("../model/setting.php");


//根据页面数量信息，筛选信息，创造url，供页码,跳转等使用
include_once("script/set_url.php");






    //这里是设计上传文件的部分：包含图片和附件。视频也应该用这种形式上传
    //统一设置一下保存图片的路径
    $_uf['path']        = ROOT_PATH_ . "/uploadfiles/".$theme_folder."/";





    //上传icon
    if (is_uploaded_file($_FILES['icon']['tmp_name']))
    {
        $_uf['upfile']       = $_FILES['icon'];
        $_info               = upload_file($_uf);
        $_REQUEST['ai_icon'] = $_info['name'];

        $icon          = $_REQUEST['ai_icon'];


    }


    //上传image1
    if (is_uploaded_file($_FILES['image1']['tmp_name']))
    {
        $_uf['upfile']         = $_FILES['image1'];
        $_info                 = upload_file($_uf);
        $_REQUEST['ai_image1'] = $_info['name'];
        $destination1  = $_REQUEST['ai_image1'];


    }


$sql=insert_data($table_prefix.$_plate['table']['data'],$_REQUEST);
    $query = do_query($sql) or die (mysqli_error().$sql);

?>

